import java.util.Scanner;
/**
 * processing example: displays the result of java logical operator
 * 
 * @author Amrita Mukherjee
 * @version 02/10/2012
 */
public class A8_1
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        System.out.println("This program helps you to make a decision. ");
        System.out.println();
        
        System.out.println("Is it raining(yes/no)? ");
        String input1 = keyboard.nextLine();
        boolean isItRaining = input1.startsWith("y");
                
        System.out.println("Is it cold(yes/no)? ");
        String input2 = keyboard.nextLine();
        boolean isItCold = input2.startsWith("y");
        
        
       
        if(isItRaining == true || isItCold == true) 
        {
            System.out.println("I will bring a jacket");
        }
        else
        {
            System.out.println("I will not bring a jacket.");
        }
    }
}
/*
 * My test session:
 * This program helps you to make a decision. 

Is it raining(yes/no)? 
yes
Is it cold(yes/no)? 
yes
I will bring a jacket
This program helps you to make a decision. 

Is it raining(yes/no)? 
no
Is it cold(yes/no)? 
yes
I will bring a jacket
This program helps you to make a decision. 

Is it raining(yes/no)? 
yes
Is it cold(yes/no)? 
no
I will bring a jacket
This program helps you to make a decision. 

Is it raining(yes/no)? 
no
Is it cold(yes/no)? 
no
I will not bring a jacket.

 */